package com.durian.base.net.request;

import okhttp3.Request;

/**
 * 说明：OkSyncPost
 * <p/>
 * 作者：fanly
 * <p/>
 * 类型：Class
 * <p/>
 * 时间：2019/2/18 17:00
 * <p/>
 * 版本：version 1.0
 */
public class OkSyncPost extends OkSyncHttpTask {

    public OkSyncPost(String url) {
        super(url);
    }

    public static OkSyncPost create(String url){
        return new OkSyncPost(url);
    }

    @Override
    public Request.Builder createRequestBuilder() {
        return new Request.Builder()
                .url(getUrl())
                .tag(getUrl())
                .headers(getRequestParams().getHeaders())
                .post(getRequestParams().getRequestBody());

    }

}
